Add ostree_ensure_repo_writable()
authorMatthew Barnes <mbarnes@redhat.com>
Fri, 16 Jan 2015 15:04:18 +0000 (10:04 -0500)
committerColin Walters <walters@verbum.org>
Wed, 25 Mar 2015 21:24:05 +0000 (17:24 -0400)
commit7941189dfde3795fb649aba41e207f0072dfcd86
tree4eb523fd9610e014df0f8f7ba2411ba3b56a6fc9
parenta25c7fab129779483012c4b52c1d0ef54878cc69
Add ostree_ensure_repo_writable()

Commands that need to write files within the repo directory can call
this early to ensure the directory is writable for the current user.
If not, it fails with a helpful "You need to be root to perform this
command" message.
src/ostree/ot-main.c
src/ostree/ot-main.h